package com.diandian.backend.eleme.retail.exchange.req;

import java.io.Serializable;

public class SkuStockUpdateOneReq implements Serializable {

    private String storeId; // 线下门店id
    private String productId; // 线下商品id
    private Integer stockCount; // 库存数据

    public boolean check(){
        if(storeId == null || "".equals(storeId)){
            return false;
        }
        if(productId == null || "".equals(productId)){
            return false;
        }
        if(stockCount == null){
            return false;
        }
        return true;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Integer getStockCount() {
        return stockCount;
    }

    public void setStockCount(Integer stockCount) {
        this.stockCount = stockCount;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("SkuStockUpdateOneReq{");
        sb.append("storeId='").append(storeId).append('\'');
        sb.append(", productId='").append(productId).append('\'');
        sb.append(", stockCount=").append(stockCount);
        sb.append('}');
        return sb.toString();
    }
}
